package com.jxdinfo.hussar.activitidemo.service;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.jxdinfo.hussar.activitidemo.bean.TdbYjMEventReportRecord;
import com.jxdinfo.hussar.activitidemo.dao.GetDeptIdDao;
import com.jxdinfo.hussar.activitidemo.dao.TdbYjMEventReportRecordMapper;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zzd
 * @since 2019-06-03
 */
@Service
public class TdbYjMEventReportRecordServiceImpl extends
		ServiceImpl<TdbYjMEventReportRecordMapper, TdbYjMEventReportRecord> implements ITdbYjMEventReportRecordService {

	@Autowired
	GetDeptIdDao getDeptIdDao;

	@Override
	public Map<String, Object> GetTodeptBydeptId(String deptId) {
		Map<String, Object> reMap = new HashMap<String, Object>();
		try {
			reMap = getDeptIdDao.GetDeptNameByDeptId(deptId);

		} catch (Exception e) {
			e.printStackTrace();
			reMap.put("msg", "查询信息失败");
			reMap.put("status", "error");
			return reMap;
		}
		return reMap;
	}

	@Override
	public int insertInfo(TdbYjMEventReportRecord tdbYjMEventReportRecord) {
		return baseMapper.insertInfo(tdbYjMEventReportRecord);
	}

	@Override
	public int deleteBatch(Map<String, Object> map) {
		// TODO 自动生成的方法存根
		return baseMapper.deleteBatch(map);
	}

}
